//Wraper class for an array that hold stop words from a given file

#ifndef STOPWORDLIST_H
#define STOPWORDLIST_H

#include <string>
#include <string.h>
#include <fstream>
#include <iostream>
#include <stdio.h>
#include <stdlib.h>

using namespace std;

class StopWordList{

      private:

			const static int INITIAL_SIZE=50;
            string *words;		//array that holds words
            int count;
            int totalSize;
            void resize();			//private method to increase size of the array
            void add(const string *word);	//private method that adds word to the array

      public:

            StopWordList(char *fileName);
            //Constructor accepts file name adds words to the list
            ~StopWordList();
            bool contains(const string *word);
            //Returns true if a given word is in the list
            friend int compareStrs(const void * a, const void * b);

}; 



#endif
